/**
 * Historico de alteração
 *
 * Data         Autor   Descrição
 * 24/10/2010   Jerry   Criação do cabeçalho.
 *
 */
package railbee.banco.dto;

import railbee.banco.dao.*;
import railbee.banco.factory.*;
import railbee.banco.exceptions.*;
import java.io.Serializable;
import java.util.*;

public class TremZigbee implements Serializable
{
	/** 
	 * This attribute maps to the column id_seq_trem_xbee in the trem_zigbee table.
	 */
	protected int idSeqTremXbee;

	/** 
	 * This attribute maps to the column trem in the trem_zigbee table.
	 */
	protected String trem;

	/** 
	 * This attribute maps to the column enderecoxbee in the trem_zigbee table.
	 */
	protected String enderecoxbee;

	/**
	 * Method 'TremZigbee'
	 * 
	 */
	public TremZigbee()
	{
	}

	/**
	 * Method 'getIdSeqTremXbee'
	 * 
	 * @return int
	 */
	public int getIdSeqTremXbee()
	{
		return idSeqTremXbee;
	}

	/**
	 * Method 'setIdSeqTremXbee'
	 * 
	 * @param idSeqTremXbee
	 */
	public void setIdSeqTremXbee(int idSeqTremXbee)
	{
		this.idSeqTremXbee = idSeqTremXbee;
	}

	/**
	 * Method 'getTrem'
	 * 
	 * @return String
	 */
	public String getTrem()
	{
		return trem;
	}

	/**
	 * Method 'setTrem'
	 * 
	 * @param trem
	 */
	public void setTrem(String trem)
	{
		this.trem = trem;
	}

	/**
	 * Method 'getEnderecoxbee'
	 * 
	 * @return String
	 */
	public String getEnderecoxbee()
	{
		return enderecoxbee;
	}

	/**
	 * Method 'setEnderecoxbee'
	 * 
	 * @param enderecoxbee
	 */
	public void setEnderecoxbee(String enderecoxbee)
	{
		this.enderecoxbee = enderecoxbee;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof TremZigbee)) {
			return false;
		}
		
		final TremZigbee _cast = (TremZigbee) _other;
		if (idSeqTremXbee != _cast.idSeqTremXbee) {
			return false;
		}
		
		if (trem == null ? _cast.trem != trem : !trem.equals( _cast.trem )) {
			return false;
		}
		
		if (enderecoxbee == null ? _cast.enderecoxbee != enderecoxbee : !enderecoxbee.equals( _cast.enderecoxbee )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idSeqTremXbee;
		if (trem != null) {
			_hashCode = 29 * _hashCode + trem.hashCode();
		}
		
		if (enderecoxbee != null) {
			_hashCode = 29 * _hashCode + enderecoxbee.hashCode();
		}
		
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return TremZigbeePk
	 */
	public TremZigbeePk createPk()
	{
		return new TremZigbeePk(idSeqTremXbee);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "railbee.banco.dto.TremZigbee: " );
		ret.append( "idSeqTremXbee=" + idSeqTremXbee );
		ret.append( ", trem=" + trem );
		ret.append( ", enderecoxbee=" + enderecoxbee );
		return ret.toString();
	}

}
